package models;

import java.math.BigInteger;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import play.db.jpa.Model;
@Entity
@Table(name="noticia")
public class Noticia extends Model {

	public byte ativo;

	@Lob @Basic(fetch=FetchType.LAZY, optional = false) 
	@Column(nullable = false)
	public String conteudo;
	@Lob @Basic(fetch=FetchType.LAZY, optional = false) 
	@Column(nullable = false)
	public String lead;
	@Column(nullable = false)
	@Basic(optional = false)
	public String titulo;

	public BigInteger version;

}
